<!DOCTYPE html>
<html   xmlns="http://www.w3c.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:p="http://primefaces.org/ui"
        xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head/>
    <h:body>
        <p:tagCloud model="#{tagCloudBean.model}" />
        
        <h:form>
            <p:growl id="msg" showDetail="true" />
            <p:tagCloud model="#{tagCloudBean.model}">
                <p:ajax event="select" update="msg" listener="#{tagCloudBean.onSelect}" />
            </p:tagCloud>
        </h:form>
    </h:body>
</html>
